-- GENERATED SPELL FOR [Dragonflayer Seer] --


function spell0_26554(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(48699,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26554', 623, 1)
end

function spell1_26554(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(59082,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26554', 508, 1)
end

function spell2_26554(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(48700,pUnit)
pUnit:RegisterEvent('Sorts_26554', 3000, 1)
end

function spell3_26554(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(59083,pUnit)
pUnit:RegisterEvent('Sorts_26554', 3000, 1)
end

function spell4_26554(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(48698,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26554', 2000, 1)
end

function spell5_26554(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(59081,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26554', 2000, 1)
end

function Sorts_26554(pUnit, Event)
local choix_sorts_26554 = math.random(0, 5)
if choix_sorts_26554 == 0 then
pUnit:RegisterEvent('spell0_26554', 1, 1)
end
if choix_sorts_26554 == 1 then
pUnit:RegisterEvent('spell1_26554', 1, 1)
end
if choix_sorts_26554 == 2 then
pUnit:RegisterEvent('spell2_26554', 1, 1)
end
if choix_sorts_26554 == 3 then
pUnit:RegisterEvent('spell3_26554', 1, 1)
end
if choix_sorts_26554 == 4 then
pUnit:RegisterEvent('spell4_26554', 1, 1)
end
if choix_sorts_26554 == 5 then
pUnit:RegisterEvent('spell5_26554', 1, 1)
end
end

function mob26554_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26554', math.random(1500, 3000), 1)
end

function mob26554_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26554_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26554_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26554, 1, 'mob26554_Action')
RegisterUnitEvent(26554, 2, 'mob26554_Leave')
RegisterUnitEvent(26554, 3, 'mob26554_Kill')
RegisterUnitEvent(26554, 4, 'mob26554_Die')
